Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-lxatac-bsp: barebox: increase boot timeout when serial booting #133

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Apr 4, 2024

When someone loads barebox via serial download instead of e.g. from the eMMC it is very likely that they want to upload an image via fastboot next and do not want to autoboot into linux right away.

Give them a bit more time to interrupt the boot process.

This PR is based on a discussion in PR #125 (comment).
There @a3f also brings up other points that concern the flashing guide in the README:

AFAIK, the watchdog is only enabled before booting Linux (boot command), so wd -x directly after DFU bring-up doesn't matter for watchdogs. As for stopping the automatic boot process, fastboot flash has the same effect, see:
https://github.com/barebox/barebox/blob/5423885658da4beddec619c1ec4b1cb741c68554/common/fastboot.c#L814

If this change fixes something, I suspect the issue is elsewhere.

TODO before merging:

  • [ ] Inverstigate what @a3f said about the effect of wd -x and change the README accordingly.
    The investigation is a separate topic from the change introduced here.

@hnez hnez changed the base branch from nanbield to scarthgap July 26, 2024 11:31
@hnez hnez requested a review from a3f July 26, 2024 11:33
@hnez hnez marked this pull request as ready for review July 26, 2024 11:33
@hnez
Copy link
Member Author

hnez commented Jul 26, 2024

This PR got kind of forgotten some time ago. I think the change is good, so we should get this merged.

hnez added 2 commits July 29, 2024 08:16
Bareboxes hush shell behaves mostly like a normal shell scripting language,
but differs a bit here and there.
Instead of ignoring these differences on a file-by-file basis we can instead
add one central .shellcheckrc file.

Signed-off-by: Leonard Göhrs <[email protected]>
When someone loads barebox via serial download instead of e.g. from the
eMMC it is very likely that they want to upload an image via fastboot
next and do not want to autoboot into linux right away.

Give them a bit more time to interrupt the boot process.

Signed-off-by: Leonard Göhrs <[email protected]>
@hnez hnez merged commit 4da6788 into linux-automation:scarthgap Jul 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants